package com.dsz.apibackend.service.impl;

import com.dsz.apibackend.service.UserInterfaceInfoService;
import com.dsz.apicommon.service.InnerUserInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService
public class InnerUserInterfaceInfoImpl implements InnerUserInterfaceInfoService {
    @Resource
    private UserInterfaceInfoService userInterfaceInfoService;

    /**
     * 接口调用次数+1
     */
    @Override
    public boolean invokeCount(Long userId, Long interfaceInfoId) {
        return userInterfaceInfoService.invokeCount(userId, interfaceInfoId);
    }
}
